package org.example.mapper;


import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Delete;
import org.example.domain.Role;
import org.example.dto.RolePageDTO;

import java.util.List;

/**
 * @author 程思彤
 * @description 针对表【sys_role】的数据库操作Mapper
 * @createDate 2024-05-23 10:48:59
 * @Entity org.example.domain.Role
 */
public interface RoleMapper {

    Page<Role> listAll(RolePageDTO rolePageDTO);

    boolean updateRole(RolePageDTO rolePageDTO);

    boolean add(RolePageDTO rolePageDTO);

    @Delete("delete from sys_role where id=#{id};")
    boolean delete(Integer id);
}




